package main

import "fmt"

type Storage interface {
	Save()
	SaveSnap()
}


type storage struct{
	Wal
	Snapshorter
}

type Wal struct{
	Path stringt
}

type Snapshorter struct{
	Path string
}

func (w Wal) Save()(){
	fmt.Println(11111)
}

func (s Snapshorter) SaveSnap()(){
	fmt.Println(22222)
}


func main(){
	var s Storage
	s = storage{Wal{Path: "aaa"}, Snapshorter{Path: "bbbbb"}}
	s.Save()
	s.SaveSnap()
}